-
Notifications
You must be signed in to change notification settings - Fork 65
add version.gradle.kts #1122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add version.gradle.kts #1122
Conversation
We have a version file here: https://github.com/aws-observability/aws-otel-java-instrumentation/blob/main/.github/patches/versions I believe it is currently used in building the lambda layer. Do we need to do something about that? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1122 +/- ##
=============================================
- Coverage 85.71% 67.07% -18.64%
- Complexity 19 525 +506
=============================================
Files 3 54 +51
Lines 49 2694 +2645
Branches 5 376 +371
=============================================
+ Hits 42 1807 +1765
- Misses 3 750 +747
- Partials 4 137 +133 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Issue #, if available:
Description of changes:
(copied from #1121)
The current version for ADOT SDK and Lambda Layer releases is only provided manually in the release workflow and auto-generated by the nebula release plugin based on previous tags, but never specified in the code. Adding a version file will provide explicit version management and make it easier to track upcoming releases. adotVersion is currently set to 2.11.1-dev0, following the convention used by our other ADOT projects (Python, .NET, NodeJS).
The ADOT Lambda layer was previously given a version name after the upstream OpenTelemetry instrumentation. For example, for the most recent 2.11.1 release -- which still depends on OpenTelemetry Java Instrumentation 2.11.0 -- logs the following upon startup:
This change has the Lambda layer's Otel agent consume the version provided in version.gradle.kts. For example, after building locally, the layer will now log:
which is the accurate version.
Soon we will add pre-release and post-release workflows like the other language ADOT repos to automatically bump the version number. This is part of our work to align the release process for all 4 languages and streamline releases for future engineers.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.